<!-- 首页头部 -->
<template>
    <div class="header">
      <div class="content">
        <div class="box1">
          <h1></h1>
        </div>
        <div class="box2">
            <common-header></common-header>
        </div>
        <div class="box3">
          <i class="iconfont icon-search"></i>
          <input type="text" placeholder="搜一搜">
        </div>
        <AppHeaderCart></AppHeaderCart>
      </div>
    </div>
  </template>

<script>
import AppHeaderCart from './AppHeaderCart.vue';
import CommonHeader from './CommonHeader.vue'

export default {
    components: { CommonHeader, AppHeaderCart },
    
}
</script>

<style lang='scss' scoped>
.header {
  width: 100%;
  height: 132px;
  background: #ffffff;
  .content {
    width: 1240px;
    height: 132px;
    // background: white;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    .box1 {
      width: 200px;
      height: 132px;
      overflow: hidden;
      h1 {
        margin-top: 16px;
        width: 100%;
        height: 100%;
        background: url(@/assets/logo.0940ebb5.png) no-repeat;
        background-size: 100% 70%;
      }
    }
    .box2 {
      width: 820px;
      height: 32px;
    }
    .box3 {
      width: 170px;
      height: 32px;
      border-bottom: 1px solid #E7E7E7;
      line-height: 32px;
      position: relative; 
      .iconfont{
        font-size: 18px;
        margin-left: 5px;
      }
      input{
        width: 140px;
        padding-left: 5px;
        margin-left: 5px;
        color: #666;
        padding:0;
        outline:none;
        border:none;
        background: #ffffff;
      }
    }
    .box4 {
      width: 50px;
      height: 32px;
      .a1{
        height: 32px;
        text-align: center;
        position: relative;
        display: block;
        .icon-cart{
          font-size: 22px;
          color: black;
        }
      }
    }
  }
}
</style>